<template>
  <div class="demo">
    <div class="demo-title">基本</div>
    <div class="demo-content">
      <Badge count="5">
        <Avatar shape="square" size="large" />
      </Badge>
      <Badge count="0" show-zero>
        <Avatar shape="square" size="large" />
      </Badge>
      <Badge>
        <template #count>
          <ClockCircleOutlined style="color: #f5222d" />
        </template>
        <Avatar shape="square" size="large" />
      </Badge>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ClockCircleOutlined } from '@ant-design/icons-vue';
  import Avatar from '@sscd/avatar';
  import Badge from '@sscd/badge';
</script>

<style lang="less" scoped>
  .demo-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
</style>
